package com.nmh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nmh.dto.PastureDto;
import com.nmh.entity.Pasture;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PastureService extends IService<Pasture> {
    List<Pasture> SelectAllByState();
    List<Pasture> selectAll();
    //添加牧场
    boolean insertPasture(PastureDto pastureDto);
    //查找是否存在该牧场名字的牧场，用来进行判断牧场名字是否为空
    boolean searchPasture(String pastureName);
    //修改牧场
    boolean updatePasture(PastureDto pastureDto);
    //通过牧场名称查找牧场
    Pasture searchPastureByName(String pastureName);
    //通过牧场id查找牧场姓名
    String searchPastureById(Integer id);
}
